inherited dtmda_Product: Tdtmda_Product
  OldCreateOrder = True
  Left = 460
  Top = 192
  Height = 527
  Width = 788
  inherited adsMaster: TADODataSet
    CursorType = ctStatic
    CommandText = 'select *  from V_da_Product  where 0=1'#13#10
    Left = 40
    Top = 48
    object adsMasterProductID: TStringField
      DisplayLabel = #20135#21697'ID'
      FieldName = 'ProductID'
    end
    object adsMasterProductCode: TStringField
      DisplayLabel = #20135#21697#32534#30721
      FieldName = 'ProductCode'
      Size = 50
    end
    object adsMasterProductName: TStringField
      DisplayLabel = #20135#21697#21517#31216
      FieldName = 'ProductName'
      Size = 100
    end
    object adsMasterSpecs: TStringField
      DisplayLabel = #32433#32447#35268#26684
      FieldName = 'Specs'
      Size = 200
    end
    object adsMasterHelperCode: TStringField
      DisplayLabel = #21161#35760#30721
      FieldName = 'HelperCode'
      Size = 50
    end
    object adsMasterUnitID: TStringField
      DisplayLabel = #21333#20301'ID'
      FieldName = 'UnitID'
    end
    object adsMasterUnitName: TStringField
      DisplayLabel = #21333#20301
      FieldName = 'UnitName'
    end
    object adsMasterDeptID: TStringField
      DisplayLabel = #20844#21496'ID'
      FieldName = 'DeptID'
    end
    object adsMasterDeptName: TStringField
      DisplayLabel = #20844#21496#21517#31216
      FieldName = 'DeptName'
      Size = 50
    end
    object adsMasterPlaceCode: TStringField
      DisplayLabel = #26679#21697#23384#25918'|'#23384#25918#20301#32622
      FieldName = 'PlaceCode'
    end
    object adsMasterOrderID: TStringField
      DisplayLabel = #26679#21697#23384#25918'|'#23384#25918#39034#24207
      FieldName = 'OrderID'
    end
    object adsMasterImgType: TStringField
      DisplayLabel = #22270#29255#31867#22411
      FieldName = 'ImgType'
      Size = 5
    end
    object adsMasterProductType: TStringField
      DisplayLabel = #20135#21697#20998#31867'ID'
      FieldName = 'ProductType'
    end
    object adsMasterProductTypeName: TStringField
      DisplayLabel = #20135#21697#20998#31867
      FieldName = 'ProductTypeName'
      Size = 50
    end
    object adsMasterRuleChildID: TStringField
      DisplayLabel = #35268#21017#32534#30721'ID'
      FieldName = 'RuleChildID'
      Size = 40
    end
    object adsMasterTopTypeName: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#33457#36793#31867#22411
      FieldName = 'TopTypeName'
    end
    object adsMasterHeight: TStringField
      DisplayLabel = #33457#39640
      FieldName = 'Height'
      Size = 50
    end
    object adsMasterWidth: TStringField
      DisplayLabel = #33457#23485
      FieldName = 'Width'
      Size = 50
    end
    object adsMasterBreadth: TStringField
      DisplayLabel = #24133#23485
      FieldName = 'Breadth'
      Size = 50
    end
    object adsMasterGram: TStringField
      DisplayLabel = #20811#37325
      FieldName = 'Gram'
      Size = 50
    end
    object adsMasterElastic: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#24377#24615'ID'
      FieldName = 'Elastic'
    end
    object adsMasterElasticName: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#24377#24615
      FieldName = 'ElasticName'
      Size = 50
    end
    object adsMasterEditionShape: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#29256#24418'ID'
      FieldName = 'EditionShape'
    end
    object adsMasterEditionShapeName: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#29256#24418
      FieldName = 'EditionShapeName'
      Size = 50
    end
    object adsMasterFlowerShape: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#33457#36793#24418#29366'ID'
      FieldName = 'FlowerShape'
    end
    object adsMasterFlowerShapeName: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#33457#36793#24418#29366
      FieldName = 'FlowerShapeName'
      Size = 50
    end
    object adsMasterSymmetry: TBooleanField
      DisplayLabel = #30456#20851#23646#24615'|'#23545#31216
      FieldName = 'Symmetry'
    end
    object adsMasterToothSide: TBooleanField
      DisplayLabel = #30456#20851#23646#24615'|'#29273#36793
      FieldName = 'ToothSide'
    end
    object adsMasterToothSideType: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#29273#36793#31867#22411'ID'
      FieldName = 'ToothSideType'
    end
    object adsMasterToothSideTypeName: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#29273#36793#31867#22411
      FieldName = 'ToothSideTypeName'
      Size = 50
    end
    object adsMasterProperty: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#20854#20182#23646#24615'ID'
      FieldName = 'Property'
    end
    object adsMasterPropertyName: TStringField
      DisplayLabel = #30456#20851#23646#24615'|'#20854#20182#23646#24615
      FieldName = 'PropertyName'
      Size = 50
    end
    object adsMasterDescription: TStringField
      DisplayLabel = #20135#21697#25551#36848
      FieldName = 'Description'
      Size = 700
    end
    object adsMasterComposition: TStringField
      DisplayLabel = #25104#20998#27604#20363
      FieldName = 'Composition'
      Size = 100
    end
    object adsMasterNeedleInfo: TStringField
      DisplayLabel = #38024#23544#25968
      FieldName = 'NeedleInfo'
      Size = 50
    end
    object adsMasterOutputNumber: TFloatField
      DisplayLabel = #26085#20135#37327'(KG)'
      FieldName = 'OutputNumber'
    end
    object adsMasterYarnSpecs: TStringField
      DisplayLabel = #32433#38271'(100'#26522#38024')'
      FieldName = 'YarnSpecs'
      Size = 50
    end
    object adsMasterYarnBrand: TStringField
      DisplayLabel = #32433#32447#21697#29260
      FieldName = 'YarnBrand'
      Size = 50
    end
    object adsMasterSpandexBrand: TStringField
      DisplayLabel = #27688#32438#21697#29260
      FieldName = 'SpandexBrand'
      Size = 50
    end
    object adsMasterStripPriceInfo: TStringField
      DisplayLabel = #32986#24067#20215'/'#22791#27880
      FieldName = 'StripPriceInfo'
      Size = 50
    end
    object adsMasterHasUse: TBooleanField
      DisplayLabel = #20351#29992#21542
      FieldName = 'HasUse'
    end
    object adsMasterHasStop: TBooleanField
      DisplayLabel = #31105#29992#21542
      FieldName = 'HasStop'
    end
    object adsMasterHasDefault: TBooleanField
      DisplayLabel = #40664#35748#21542
      FieldName = 'HasDefault'
    end
    object adsMasterHasSysDefine: TBooleanField
      DisplayLabel = #31995#32479#23450#20041#21542
      FieldName = 'HasSysDefine'
    end
    object adsMasterStoper: TStringField
      DisplayLabel = #31105#29992#20154
      FieldName = 'Stoper'
    end
    object adsMasterStopDate: TDateTimeField
      DisplayLabel = #31105#29992#26102#38388
      FieldName = 'StopDate'
    end
    object adsMasterStopMemo: TStringField
      DisplayLabel = #31105#29992#35828#26126
      FieldName = 'StopMemo'
      Size = 100
    end
    object adsMasterHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterWriter: TStringField
      Tag = 1
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterWriteTime: TDateTimeField
      Tag = 1
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterModifier: TStringField
      Tag = 1
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterModifyTime: TDateTimeField
      Tag = 1
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 100
    end
  end
  inherited adsMasterEdit: TADODataSet
    CursorType = ctStatic
    CommandText = 'select *  from da_Product  where ProductID=:ProductID'#13#10
    Parameters = <
      item
        Name = 'ProductID'
        DataType = ftString
        NumericScale = 255
        Precision = 255
        Size = 20
        Value = Null
      end>
    Left = 160
    Top = 96
    object adsMasterEditProductID: TStringField
      DisplayLabel = #20135#21697'ID'
      FieldName = 'ProductID'
    end
    object adsMasterEditProductCode: TStringField
      DisplayLabel = #20135#21697#32534#30721
      FieldName = 'ProductCode'
      Size = 50
    end
    object adsMasterEditProductName: TStringField
      DisplayLabel = #20135#21697#21517#31216
      FieldName = 'ProductName'
      OnChange = adsMasterEditProductNameChange
      Size = 100
    end
    object adsMasterEditSpecs: TStringField
      DisplayLabel = #22411#21495#35268#26684
      FieldName = 'Specs'
      Size = 200
    end
    object adsMasterEditHelperCode: TStringField
      DisplayLabel = #21161#35760#30721
      FieldName = 'HelperCode'
      Size = 50
    end
    object adsMasterEditStockDefUnitID: TStringField
      DisplayLabel = #40664#35748#24211#23384#21333#20301'ID'
      FieldName = 'UnitID'
    end
    object adsMasterEditDeptID: TStringField
      DisplayLabel = #20844#21496'ID'
      FieldName = 'DeptID'
    end
    object adsMasterEditPlaceCode: TStringField
      DisplayLabel = #23384#25918#20301#32622
      FieldName = 'PlaceCode'
    end
    object adsMasterEditOrderID: TStringField
      DisplayLabel = #23384#25918#39034#24207
      FieldName = 'OrderID'
    end
    object adsMasterEditSourcePhoto: TBlobField
      DisplayLabel = #22270#29255
      FieldName = 'SourcePhoto'
    end
    object adsMasterEditImgType: TStringField
      DisplayLabel = #22270#29255#31867#22411
      FieldName = 'ImgType'
      Size = 5
    end
    object adsMasterEditBitPhoto: TBlobField
      DisplayLabel = #32553#30053#22270
      FieldName = 'BitPhoto'
    end
    object adsMasterEditProductType: TStringField
      DisplayLabel = #20135#21697#20998#31867'ID'
      FieldName = 'ProductType'
    end
    object adsMasterEditTopTypeName: TStringField
      DisplayLabel = #33457#36793#31867#22411
      FieldName = 'TopTypeName'
    end
    object adsMasterEditHeight: TStringField
      DisplayLabel = #33457#39640
      FieldName = 'Height'
      Size = 50
    end
    object adsMasterEditWidth: TStringField
      DisplayLabel = #33457#23485
      FieldName = 'Width'
      Size = 50
    end
    object adsMasterEditBreadth: TStringField
      DisplayLabel = #24133#23485
      FieldName = 'Breadth'
      Size = 50
    end
    object adsMasterEditGram: TStringField
      DisplayLabel = #20811#37325
      FieldName = 'Gram'
      Size = 50
    end
    object adsMasterEditElastic: TStringField
      DisplayLabel = #24377#24615'ID'
      FieldName = 'Elastic'
    end
    object adsMasterEditEditionShape: TStringField
      DisplayLabel = #29256#24418'ID'
      FieldName = 'EditionShape'
    end
    object adsMasterEditFlowerShape: TStringField
      DisplayLabel = #33457#36793#24418#29366'ID'
      FieldName = 'FlowerShape'
    end
    object adsMasterEditSymmetry: TBooleanField
      DisplayLabel = #23545#31216
      FieldName = 'Symmetry'
    end
    object adsMasterEditToothSide: TBooleanField
      DisplayLabel = #29273#36793
      FieldName = 'ToothSide'
    end
    object adsMasterEditToothSideType: TStringField
      DisplayLabel = #29273#36793#31867#22411'ID'
      FieldName = 'ToothSideType'
    end
    object adsMasterEditProperty: TStringField
      DisplayLabel = #20854#20182#23646#24615'ID'
      FieldName = 'Property'
    end
    object adsMasterEditDescription: TStringField
      DisplayLabel = #20135#21697#25551#36848
      FieldName = 'Description'
      Size = 700
    end
    object adsMasterEditComposition: TStringField
      DisplayLabel = #25104#20998#27604#20363
      FieldName = 'Composition'
      Size = 100
    end
    object adsMasterEditNeedleInfo: TStringField
      DisplayLabel = #38024#23544#25968
      FieldName = 'NeedleInfo'
      Size = 50
    end
    object adsMasterEditOutputNumber: TFloatField
      DisplayLabel = #26085#20135#37327'(KG)'
      FieldName = 'OutputNumber'
    end
    object adsMasterEditYarnSpecs: TStringField
      DisplayLabel = #32433#38271#35268#26684'(100'#26522#38024')'
      FieldName = 'YarnSpecs'
      Size = 50
    end
    object adsMasterEditYarnBrand: TStringField
      DisplayLabel = #32433#32447#21697#29260
      FieldName = 'YarnBrand'
      Size = 50
    end
    object adsMasterEditSpandexBrand: TStringField
      DisplayLabel = #27688#32438#21697#29260
      FieldName = 'SpandexBrand'
      Size = 50
    end
    object adsMasterEditStripPriceInfo: TStringField
      DisplayLabel = #32986#24067#20215'/'#22791#27880
      FieldName = 'StripPriceInfo'
      Size = 50
    end
    object adsMasterEditHasUse: TBooleanField
      DisplayLabel = #20351#29992#21542
      FieldName = 'HasUse'
    end
    object adsMasterEditHasStop: TBooleanField
      DisplayLabel = #31105#29992#21542
      FieldName = 'HasStop'
    end
    object adsMasterEditHasDefault: TBooleanField
      DisplayLabel = #40664#35748#21542
      FieldName = 'HasDefault'
    end
    object adsMasterEditHasSysDefine: TBooleanField
      DisplayLabel = #31995#32479#23450#20041#21542
      FieldName = 'HasSysDefine'
    end
    object adsMasterEditStoper: TStringField
      DisplayLabel = #31105#29992#20154
      FieldName = 'Stoper'
    end
    object adsMasterEditStopDate: TDateTimeField
      DisplayLabel = #31105#29992#26102#38388
      FieldName = 'StopDate'
    end
    object adsMasterEditStopMemo: TStringField
      DisplayLabel = #31105#29992#35828#26126
      FieldName = 'StopMemo'
      Size = 100
    end
    object adsMasterEditHasCheck: TBooleanField
      DisplayLabel = #23457#26680#21542
      FieldName = 'HasCheck'
    end
    object adsMasterEditChecker: TStringField
      DisplayLabel = #23457#26680#20154
      FieldName = 'Checker'
    end
    object adsMasterEditCheckTime: TDateTimeField
      DisplayLabel = #23457#26680#26102#38388
      FieldName = 'CheckTime'
    end
    object adsMasterEditWriter: TStringField
      Tag = 1
      DisplayLabel = #39318#36755#20154
      FieldName = 'Writer'
    end
    object adsMasterEditWriteTime: TDateTimeField
      Tag = 1
      DisplayLabel = #39318#36755#26102#38388
      FieldName = 'WriteTime'
    end
    object adsMasterEditModifier: TStringField
      Tag = 1
      DisplayLabel = #20462#25913#20154
      FieldName = 'Modifier'
    end
    object adsMasterEditModifyTime: TDateTimeField
      Tag = 1
      DisplayLabel = #20462#25913#26102#38388
      FieldName = 'ModifyTime'
    end
    object adsMasterEditRemark: TStringField
      DisplayLabel = #22791#27880
      FieldName = 'Remark'
      Size = 100
    end
    object adsMasterEditres_ProductTypeName: TStringField
      DisplayLabel = #20135#21697#20998#31867
      FieldKind = fkLookup
      FieldName = 'res_ProductTypeName'
      LookupDataSet = res_item
      LookupKeyFields = 'id'
      LookupResultField = 'name'
      KeyFields = 'ProductType'
      Size = 50
      Lookup = True
    end
    object adsMasterEditres_DeptName: TStringField
      DisplayLabel = #23384#25918#24215#38138
      FieldKind = fkLookup
      FieldName = 'res_DeptName'
      LookupDataSet = adsDepartment
      LookupKeyFields = 'DeptID'
      LookupResultField = 'DeptName'
      KeyFields = 'DeptID'
      Size = 50
      Lookup = True
    end
    object adsMasterEditres_ElasticName: TStringField
      DisplayLabel = #24377#24615
      FieldKind = fkLookup
      FieldName = 'res_ElasticName'
      LookupDataSet = res_BaseInfo
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'Elastic'
      Lookup = True
    end
    object adsMasterEditres_EditionShapeName: TStringField
      DisplayLabel = #29256#24418
      FieldKind = fkLookup
      FieldName = 'res_EditionShapeName'
      LookupDataSet = res_BaseInfo
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'EditionShape'
      Lookup = True
    end
    object adsMasterEditres_FlowerShapeName: TStringField
      DisplayLabel = #33457#36793#24418#29366
      FieldKind = fkLookup
      FieldName = 'res_FlowerShapeName'
      LookupDataSet = res_BaseInfo
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'FlowerShape'
      Lookup = True
    end
    object adsMasterEditres_ToothSideTypeName: TStringField
      DisplayLabel = #29273#36793#31867#22411
      FieldKind = fkLookup
      FieldName = 'res_ToothSideTypeName'
      LookupDataSet = res_BaseInfo
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'ToothSideType'
      Lookup = True
    end
    object adsMasterEditres_PropertyName: TStringField
      DisplayLabel = #20854#20182#23646#24615
      FieldKind = fkLookup
      FieldName = 'res_PropertyName'
      LookupDataSet = res_BaseInfo
      LookupKeyFields = 'ID'
      LookupResultField = 'Name'
      KeyFields = 'Property'
      Lookup = True
    end
    object adsMasterEditres_StockDefUnitName: TStringField
      DisplayLabel = #40664#35748#24211#23384#21333#20301
      FieldKind = fkLookup
      FieldName = 'res_UnitName'
      LookupDataSet = res_Unit
      LookupKeyFields = 'UnitID'
      LookupResultField = 'UnitName'
      KeyFields = 'UnitID'
      Lookup = True
    end
  end
  object res_item: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select ID, Code, Name, FullName from V_da_item'
    Parameters = <>
    Left = 312
    Top = 96
  end
  object adsProductType: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'select ID, RuleChildID, Code, Name, FullName from V_da_ProductTy' +
      'pe'#13#10'order by RuleChildID'
    Parameters = <>
    Left = 160
    Top = 240
    object adsProductTypeID: TStringField
      FieldName = 'ID'
    end
    object adsProductTypeRuleChildID: TStringField
      FieldName = 'RuleChildID'
      Size = 50
    end
    object adsProductTypeCode: TStringField
      FieldName = 'Code'
    end
    object adsProductTypeName: TStringField
      FieldName = 'Name'
      Size = 50
    end
    object adsProductTypeFullName: TStringField
      FieldName = 'FullName'
      Size = 80
    end
  end
  object adsDepartment: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 
      'select DeptID, DeptCode, DeptName, DeptFullName'#13#10' from V_da_Depa' +
      'rtment where DeptType=1'#13#10'order by DeptID'
    Parameters = <>
    Left = 312
    Top = 248
  end
  object adsUserCompany: TADODataSet
    Connection = dtmConnect.conMain
    LockType = ltBatchOptimistic
    CommandText = 
      'select b.DeptID, b.DeptCode, b.DeptName from xt_CompanySet a '#13#10'j' +
      'oin da_Department b on a.CompanyID=b.DeptID'#13#10'where a.UserID=(sel' +
      'ect UserID from xt_Users where UserCode=:UserCode)'
    Parameters = <
      item
        Name = 'UserCode'
        Size = -1
        Value = Null
      end>
    Left = 456
    Top = 96
  end
  object res_Unit: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select UnitID, UnitName from V_da_Unit'
    Parameters = <>
    Left = 432
    Top = 240
  end
  object res_BaseInfo: TADODataSet
    Connection = dtmConnect.conMain
    CursorType = ctStatic
    LockType = ltBatchOptimistic
    CommandText = 'select ID, Code, Name from da_BaseInfo'
    Parameters = <>
    Left = 544
    Top = 240
  end
end
